package plot;

import java.util.ArrayList;
import javax.swing.JPanel;

/**
 *
 * @author Evangelista
 */
public abstract class PlotIntegration {
    
    public static boolean save( String pano_id, ArrayList<String> vizinhos, double lat, double lng, double grau, boolean winner ){ return PlotDataSet.add( new PlotData(pano_id, vizinhos, lat, lng, grau, winner) ); }
    
    public static JPanel  generate_view( ){ return new PlotDraw(); }
    
    public static JPanel  generate_google_map( ){ return new PlotGoogleMaps(); }
    
    public static void main( String args[] ){
        
        ArrayList<String> v1 = new ArrayList<String>();
        ArrayList<String> v2 = new ArrayList<String>();
        ArrayList<String> v3 = new ArrayList<String>();
        ArrayList<String> v4 = new ArrayList<String>();
        ArrayList<String> v5 = new ArrayList<String>();
        ArrayList<String> v6 = new ArrayList<String>();
        
        v1.add("2");
        v1.add("5");
        v2.add("1");
        v2.add("3");
        v3.add("2");
        v3.add("4");
        v4.add("3");
        v5.add("1");
        v6.add("2");
        
        // Bootstrap - Carrega Exemplos
        PlotIntegration.save("1", v1, -22.806271, -43.183713, Math.toRadians(15.0), false);
        PlotIntegration.save("2", v2, -22.806251, -43.183758, 0, true);
        PlotIntegration.save("3", v3, -22.806206,-43.183844, 0, false);
        PlotIntegration.save("4", v4, -22.806162,-43.18393, 0, false);
        PlotIntegration.save("5", v5, -22.806315,-43.183624, 0, false);
        PlotIntegration.save("6", v6, -22.806225,-43.183725, 0, true);
        
        new PlotDataFrameTest().setVisible(true);
        //System.out.append(GoogleMap.generate_final_map_url(20, 800));
//        new PlotDataFrameTest();
        
    }
    
    public static void createPlote(){
        new PlotDataFrameTest().setVisible(true);
    }
    
}
